import { SceneSystem } from "./base/SceneSystem";
import { ThreeRenderSystem } from "./base/ThreeRenderSystem";
import { History } from "./History";

export class EditorApp {

  history: History;
  sceneSystem: SceneSystem;
  renderSystem: ThreeRenderSystem;

  constructor() {
    this.history = new History(this);
    this.sceneSystem = new SceneSystem();
    this.renderSystem = new ThreeRenderSystem();
  }

  mountRenderCanvas(containerDom: HTMLElement) {
    this.renderSystem.bind(containerDom, this.sceneSystem.scene);
    this.renderSystem.useStats();
  }
}
